Includes APIs for registering buffers, getting images, and rendering images. More...
Functions | |
| def | MV_CC_RegisterImageCallBackEx (self, CallBackFun, pUser) |
| Registers an image data callback. More... | |
| def | MV_CC_RegisterImageCallBackEx2 (self, CallBackFun, pUser, bAutoFree) |
| Registers an image data callback. More... | |
| def | MV_CC_RegisterStreamExceptionCallBack (self, CallBackFun, pUser) |
| Registers a stream exception callback. More... | |
| def | MV_CC_StartGrabbing (self) |
| Starts grabbing images. More... | |
| def | MV_CC_StopGrabbing (self) |
| Stops grabbing images. More... | |
| def | MV_CC_GetImageBuffer (self, stFrame, nMsec) |
| Gets one frame of image using internal buffer. More... | |
| def | MV_CC_FreeImageBuffer (self, stFrame) |
| Releases image buffer. More... | |
| def | MV_CC_GetPayloadSize (self, pnPayloadSize, pnAlignment) |
| Gets the device payload size (including image data and Chunk data) and memory alignment method. More... | |
| def | MV_CC_GetOneFrameTimeout (self, pData, nDataSize, stFrameInfo, nMsec=1000) |
| Gets one frame of image with timeout, and the SDK waits internally to return until data is available. More... | |
| def | MV_CC_ClearImageBuffer (self) |
| Clears the image buffer. More... | |
| def | MV_CC_GetValidImageNum (self, nValidImageNum) |
| Gets the number of valid images in the current image buffer. More... | |
| def | MV_CC_DisplayOneFrameEx (self, hWnd, pstDisplayInfo) |
| Displays one frame of image (extended API 1). More... | |
| def | MV_CC_DisplayOneFrameEx2 (self, hWnd, pstImage, enRenderMode) |
| Displays one frame of image (extended API 2). More... | |
| def | MV_CC_SetImageNodeNum (self, nNum) |
| Sets the number of nodes for SDK internal image buffer. More... | |
| def | MV_CC_SetGrabStrategy (self, enGrabStrategy) |
| Sets the image grabbing strategy. More... | |
| def | MV_CC_SetOutputQueueSize (self, nOutputQueueSize) |
| Sets the number of output buffers, range: [1, ImageNodeNum]. More... | |
| def | MV_CC_GetDeviceInfo (self, stDevInfo) |
| Gets the device information. More... | |
| def | MV_CC_GetAllMatchInfo (self, stInfo) |
| Gets the information of all types. More... | |
Includes APIs for registering buffers, getting images, and rendering images.
| def MvCameraControl_class.MV_CC_RegisterImageCallBackEx | ( | self, | |
| CallBackFun, | |||
| pUser | |||
| ) |
Registers an image data callback.
| handle | [IN] It refers to the device handle. |
| cbOutput | [IN] It refers to the pointer to the callback function. |
| pUser | [IN] It refers to the user-defined variable. |
| def MvCameraControl_class.MV_CC_RegisterImageCallBackEx2 | ( | self, | |
| CallBackFun, | |||
| pUser, | |||
| bAutoFree | |||
| ) |
Registers an image data callback.
After callback, you need to call MV_CC_FreeImageBuffer() to release image buffer.
| handle | [IN] It refers to the device handle. |
| cbOutput | [IN] It refers to the pointer to the callback function. |
| bAutoFree | [IN] It refers to the mark for automatic releasing of image buffer.
|
| pUser | [IN] It refers to the user-defined variable. |
| def MvCameraControl_class.MV_CC_RegisterStreamExceptionCallBack | ( | self, | |
| CallBackFun, | |||
| pUser | |||
| ) |
Registers a stream exception callback.
| handle | [IN] It refers to the device handle. |
| cbException | [IN] It refers to the pointer to the exception callback function. |
| pUser | [IN] It refers to the user-defined variable. |
| def MvCameraControl_class.MV_CC_StartGrabbing | ( | self | ) |
Starts grabbing images.
| handle | [IN] It refers to the device handle. |
| def MvCameraControl_class.MV_CC_StopGrabbing | ( | self | ) |
Stops grabbing images.
| handle | [IN] It refers to the device handle. |
| def MvCameraControl_class.MV_CC_GetImageBuffer | ( | self, | |
| stFrame, | |||
| nMsec | |||
| ) |
Gets one frame of image using internal buffer.
| handle | [IN] It refers to the device handle. |
| pstFrame | [IN][OUT] It refers to the image data and information. |
| nMsec | [IN] It refers to the timeout duration, unit: millisecond. You can input INFINITE to set unlimited timeout period, and image grabbing will not stop until a frame of data is received or the image grabbing is manually stopped. |
| def MvCameraControl_class.MV_CC_FreeImageBuffer | ( | self, | |
| stFrame | |||
| ) |
Releases image buffer.
| handle | [IN] It refers to the device handle. |
| pstFrame | [IN] It refers to the image data and information. |
| def MvCameraControl_class.MV_CC_GetPayloadSize | ( | self, | |
| pnPayloadSize, | |||
| pnAlignment | |||
| ) |
Gets the device payload size (including image data and Chunk data) and memory alignment method.
It is used by the application layer to allocate sufficient buffer and correct memory alignment when registering external buffer for SDK.
| handle | [IN] It refers to the device handle. |
| pnPayloadSize | [IN][OUT] It refers to the payload size. |
| pnAlignment | [IN][OUT] It refers to the alignment bytes. |
| def MvCameraControl_class.MV_CC_GetOneFrameTimeout | ( | self, | |
| pData, | |||
| nDataSize, | |||
| stFrameInfo, | |||
nMsec = 1000 |
|||
| ) |
Gets one frame of image with timeout, and the SDK waits internally to return until data is available.
| handle | [IN] It refers to the device handle. |
| pData | [IN][OUT] It refers to the pointer to image data buffer. |
| nDataSize | [IN] It refers to the receive buffer size. |
| pstFrameInfo | [IN][OUT] It refers to the structure of image information. |
| nMsec | [IN] It refers to the timeout duration, unit: millisecond. |
| def MvCameraControl_class.MV_CC_ClearImageBuffer | ( | self | ) |
Clears the image buffer.
| handle | [IN] It refers to the device handle. |
| def MvCameraControl_class.MV_CC_GetValidImageNum | ( | self, | |
| nValidImageNum | |||
| ) |
Gets the number of valid images in the current image buffer.
| handle | [IN] It refers to the device handle. |
| pnValidImageNum | [IN][OUT] It refers to the pointer to the number of valid images in the current image buffer. |
| def MvCameraControl_class.MV_CC_DisplayOneFrameEx | ( | self, | |
| hWnd, | |||
| pstDisplayInfo | |||
| ) |
Displays one frame of image (extended API 1).
| handle | [IN] It refers to the device handle. |
| hWnd | [IN] It refers to the window handle. |
| pstDisplayInfo | [IN] It refers to the image information. |
| def MvCameraControl_class.MV_CC_DisplayOneFrameEx2 | ( | self, | |
| hWnd, | |||
| pstImage, | |||
| enRenderMode | |||
| ) |
Displays one frame of image (extended API 2).
| handle | [IN] It refers to the device handle. |
| hWnd | [IN] It refers to the window handle. |
| pstImage | [IN] It refers to the image information. |
| enRenderMode | [IN] It refers to the image rendering mode. In Linux operating system, 0: OpenGL. |
| def MvCameraControl_class.MV_CC_SetImageNodeNum | ( | self, | |
| nNum | |||
| ) |
Sets the number of nodes for SDK internal image buffer.
The value is no less than 1, and this API should be called before calling MV_CC_StartGrabbing().
| handle | [IN] It refers to the device handle. |
| nNum | [IN] It refers to the number of buffer nodes. |
| def MvCameraControl_class.MV_CC_SetGrabStrategy | ( | self, | |
| enGrabStrategy | |||
| ) |
Sets the image grabbing strategy.
| handle | [IN] It refers to the device handle. |
| enGrabStrategy | [IN] It refers to the strategy enumeration value. |
| def MvCameraControl_class.MV_CC_SetOutputQueueSize | ( | self, | |
| nOutputQueueSize | |||
| ) |
Sets the number of output buffers, range: [1, ImageNodeNum].
| handle | [IN] It refers to the device handle. |
| nOutputQueueSize | [IN] It refers to the number of output buffers. |
| def MvCameraControl_class.MV_CC_GetDeviceInfo | ( | self, | |
| stDevInfo | |||
| ) |
Gets the device information.
| handle | [IN] It refers to the device handle. |
| pstDevInfo | [IN][OUT] It refers to the pointer to device information structure. |
| def MvCameraControl_class.MV_CC_GetAllMatchInfo | ( | self, | |
| stInfo | |||
| ) |
Gets the information of all types.
| handle | [IN] It refers to the device handle. |
| pstInfo | [IN][OUT] It refers to the pointer to information structure. |